package com.estun.backroundManagementService.modules.repory.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductExcel {

    @ColumnWidth(10)
    @ExcelProperty("日期")
    private String formattedCreateTime; // 对应日期时间列

    @ColumnWidth(10)
    @ExcelProperty("生产量")
    private long total;

    @ColumnWidth(10)
    @ExcelProperty("合格数量")
    private long qualifiedNum;

    @ColumnWidth(10)
    @ExcelProperty("不合格数量")
    private long unqualifiedNum;

    @ColumnWidth(10)
    @ExcelProperty("生产中数量")
    private long producingNum;

    @ColumnWidth(10)
    @ExcelProperty("合格率")
    private String finishProgress;

    @ColumnWidth(10)
    @ExcelProperty("累计故障时间(秒)")
    private long alarmDuration;
}
